package dancetiktokenumsmongo

const (
	DanceModelEventIdSourceClientInfo      = 0    // 客户端信息
	DanceModelEventIdSourceIntoGame        = 1    // 下场
	DanceModelEventIdSourceChangeCloth     = 10   // 换装
	DanceModelEventIdSourceEffectPlay      = 20   // 播放特效
	DanceModelEventIdSourceTreasureBox     = 30   // 百宝箱类型
	DanceModelEventIdSourceTimeLinePrepase = 101  // TimeLine准备视频播放
	DanceModelEventIdSourceTimeLineStart   = 102  // (动作卡类型)TimeLine开始视频播放
	DanceModelEventIdSourceTimeLineEnd     = 103  // TimeLine结束视频播放
	DanceModelEventIdSourceCPLink          = 1001 //  cp绑定
	DanceModelEventIdSourceCPBreak         = 1002 //  cp解绑
	DanceModelEventIdSourceCreateModel     = 9000 //  创建模式类型
)

type DanceModelEventLogLogEnums struct {
}

var DanceModelEventLogLogEnumsObject DanceModelEventLogLogEnums

func (e DanceModelEventLogLogEnums) SourceType() []int {
	return []int{
		DanceModelEventIdSourceClientInfo,
		DanceModelEventIdSourceIntoGame,
		DanceModelEventIdSourceChangeCloth,
		DanceModelEventIdSourceEffectPlay,
		DanceModelEventIdSourceTreasureBox,
		DanceModelEventIdSourceTimeLinePrepase,
		DanceModelEventIdSourceTimeLineStart,
		DanceModelEventIdSourceTimeLineEnd,
		DanceModelEventIdSourceCPLink,
		DanceModelEventIdSourceCPBreak,
		DanceModelEventIdSourceCreateModel,
	}
}

func (e DanceModelEventLogLogEnums) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range DanceModelEventLogLogEnumsObject.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e DanceModelEventLogLogEnums) SourceString(tag int) string {
	switch tag {
	case DanceModelEventIdSourceClientInfo:
		return "客户端信息"
	case DanceModelEventIdSourceIntoGame:
		return "下场"
	case DanceModelEventIdSourceChangeCloth:
		return "换装"
	case DanceModelEventIdSourceEffectPlay:
		return "播放特效"
	case DanceModelEventIdSourceTreasureBox:
		return "百宝箱类型"
	case DanceModelEventIdSourceTimeLinePrepase:
		return "TimeLine准备视频播放"
	case DanceModelEventIdSourceTimeLineStart:
		return "(动作卡类型)TimeLine开始视频播放"
	case DanceModelEventIdSourceTimeLineEnd:
		return "TimeLine结束视频播放"
	case DanceModelEventIdSourceCPLink:
		return "cp绑定"
	case DanceModelEventIdSourceCPBreak:
		return "cp解绑"
	case DanceModelEventIdSourceCreateModel:
		return "创建模式类型"
	default:
		return "其他"
	}
}
